#! /bin/sh

#senha="acsoadmin"
ip=127.0.0.1
max=5


for i in `seq 1 $max` 
do 

#sshpass -p $senha ssh acso@172.16.189.33 -C "rcssserver3d" &

rcssserver3d &

sleep 2

cd Debug

./Bahia3D 10 $ip &
sleep 2
./Trainer3D_Dummy >> log.txt

#sshpass -p $senha ssh acso@172.16.189.33 -C "killall -9 rcssserver3d"

killall -9 rcssserver3d

killall -9 Trainer3D

sleep 2

done

sleep 2
